package indoor.nexd.com.nexdmap.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wangxu on 16/3/1.
 */
public class FloorModel implements Parcelable{

    public static final Creator<FloorModel> CREATOR = new Creator<FloorModel>() {
        @Override
        public FloorModel createFromParcel(Parcel in) {
            return new FloorModel(in);
        }

        @Override
        public FloorModel[] newArray(int size) {
            return new FloorModel[size];
        }
    };
    /**
     * floorLayer : 0
     * floorId : 101001230001
     * floorName : B1
     */

    private String floorLayer;
    private String floorId;
    private String floorName;

    protected FloorModel(Parcel in) {
        floorLayer = in.readString();
        floorId = in.readString();
        floorName = in.readString();
    }

    public FloorModel() {

    }
    public String getFloorSvg() {
        return this.floorId + ".svg";
    }
    public String getFloorLayer() {
        return floorLayer;
    }
    public void setFloorLayer(String floorLayer) {
        this.floorLayer = floorLayer;
    }
    public String getFloorId() {
        return floorId;
    }
    public void setFloorId(String floorId) {
        this.floorId = floorId;
    }
    public String getFloorName() {
        return floorName;
    }
    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(floorLayer);
        dest.writeString(floorId);
        dest.writeString(floorName);
    }
}
